{% extends 'base.html' %}
{% block main_window %}
      <!-- Main window -->
      <div class="main_container" id="forms_page">
        <div class="row-fluid">
          <ul class="breadcrumb">
            <li><a href="#">Home</a> <span class="divider">/</span></li>
            <li><a href="#">Features</a> <span class="divider">/</span></li>
            <li class="active">Blog</li>
          </ul>
          <h2 class="heading">
                Blog
                <div class="btn-group pull-right">
                  <button class="btn"><i class="icon-download-alt"></i> Export</button>
                  <button class="btn"><i class="icon-envelope"></i> Email</button>
                  <button class="btn"><i class="icon-cog"></i> Settings</button>
                </div>
          </h2>
        </div>
        <div class="row-fluid">
          <div class="widget widget-padding span12">
            <div class="widget-header">
              <i class="icon-list-alt"></i><h5>博文列表</h5>
              <div class="widget-buttons">
                  <a href="#" data-title="Collapse" data-collapsed="false" class="tip collapse"><i class="icon-chevron-up"></i></a>
              </div>
            </div>
            <div class="widget-body">
              <div class="widget-forms clearfix">
                <div class="row-fluid">
                  <div class="span12">
                    <h5>Different colored rows <small>( tr class="error", tr class="success", tr class="info")</small></h5>
                    <table class="table table-bordered">
                      <thead>
                        <tr>
                          <th>#</th>
                          <th>博文标题</th>
                          <th>发表时间</th>
                          <th>作者</th>
                        </tr>
                      </thead>
                      <tbody>
                      {% for article in list %}
                        <tr>
                          <td>{{ article.id }}</td>
                          <td>{{ article.title }}</td>
                          <td>{{ article.time }}</td>
                          <td>{{ article.author }}</td>
                        </tr>
                      {% endfor %}
                      </tbody>
                    </table>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <!-- /Main window -->
{% endblock %}